<template>
	<view class="me">
		<view class="operation">
			<view class="item"><text class="ico"></text></view>
			<view class="item"><text class="ico"></text></view>
			<view class="item"><text class="ico"></text></view>
		</view>
		<view class="user">
			<view class="userInfo">
				<image :src="avatarUrl?avatarUrl:'../../static/logo.png'" class="avatar" mode="" @click="toLogin"></image>
				<view class="userInfo_region">
					<view class="name" @click="toLogin">
						{{username?username:"点击登录"}}
						<image src="../../static/iconfont/grade11.png" class="sex_icon" mode=""></image>
					</view>
					<view class="userId">
						相亲ID：{{id}}
						<text class="ico"></text>
					</view>
				</view>
			</view>
			<view class="qdBtn">
				<text class="ico"></text>
				签到
			</view>
		</view>
		<view class="userData">
			<view class="item">
				<view class="data">0</view>
				<view class="text">我喜欢的</view>
			</view>
			<view class="item">
				<view class="data">0</view>
				<view class="text">我的爱豆</view>
			</view>
			<view class="item">
				<text class="ico "></text>
				<view class="text">刷新靠前</view>
			</view>
			<view class="item">
				<text class="ico"></text>
				<view class="text">置顶相亲</view>
			</view>
		</view>
		<view class="nav">
			<view class="item">
				<view class="title">
					<view class="title_text">普通会员</view>
					<view class="right"><text class="ico"></text></view>
				</view>
				<view class="desc">开通会员，飞速脱单</view>
				<view class="btn">开通VIP</view>
				<view class="sign1"><view class="ico"></view></view>
			</view>
			<view class="item" @click="modification">
				<view class="title">
					<view class="title_text">修改资料</view>
					<view class="right"><text class="ico"></text></view>
				</view>
				<view class="desc">修改资料</view>
				<div class="bfbbox"><div class="bfb" style="width:50%">100%</div></div>
				<view class="sign2"><view class="ico"></view></view>
			</view>
		</view>
		<view class="meet_me">
			<view class="title">
				<view class="left">谁看过我</view>
				<view class="right">
					我看过谁
					<text class="ico"></text>
				</view>
			</view>
			<view class="nothing">
				暂时还没有人看过你，
				<view class="btn">刷新靠前</view>
			</view>
		</view>
		<view class="auth">
			<view class="title">
				<view class="left">诚信认证</view>
				<view class="right"><text class="ico"></text></view>
			</view>
			<view class="list">
				<view class="item">
					<i class="ico mob"></i>
					<view class="text">手机认证</view>
				</view>
				<view class="item">
					<i class="ico identity"></i>
					<view class="text">实名认证</view>
				</view>
				<view class="item">
					<i class="ico photo"></i>
					<view class="text">真人认证</view>
				</view>
				<view class="item">
					<i class="ico store"></i>
					<view class="text">到店认证</view>
				</view>
			</view>
			<view class="arrow_region"><i class="ico off morebtn"></i></view>
		</view>
		<view class="myOperation">
			<view class="title"><view class="left">我的相亲</view></view>
			<view class="list">
				<view class="item">
					<i class="ico hn">
						
						<text class="sign">人工</text>
					</i>
					<view class="text">专属红娘</view>
				</view>
				<view class="item">
					<i class="ico tg">
						
						<text class="sign">赚钱</text>
					</i>
					<view class="text">甬城红娘</view>
				</view>
				<view class="item">
					<i class="ico ask"></i>
					<view class="text">互换</view>
				</view>
				<view class="item">
					<i class="ico match"></i>
					<view class="text">配对</view>
				</view>
				<view class="item">
					<i class="ico xqk"></i>
					<view class="text">相亲卡</view>
				</view>
				<view class="item">
					<i class="ico video"></i>
					<view class="text">视频</view>
				</view>
				<view class="item">
					<i class="ico photo"></i>
					<view class="text">相册</view>
				</view>
				<view class="item">
					<i class="ico gift"></i>
					<view class="text">礼物</view>
				</view>
			</view>
		</view>
		<tabbar :value="4"></tabbar>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id:'',
			username:'',
			avatarUrl:''
		};
	},
	onLoad() {
		const id = uni.getStorageSync('id')
		const username = uni.getStorageSync('username')
		const avatarUrl = uni.getStorageSync('avatarUrl')
		this.id = id
		this.username = username
		this.avatarUrl = avatarUrl
	},
	methods:{
		toLogin(){
			uni.navigateTo({
				url:'/pages/login/login'
			})
		},
		modification(){
			uni.navigateTo({
				url:'/pages/registerDetail/registerDetail'
			})
		}
	}
};
</script>

<style lang="scss" scoped>
.me {
	padding: 0 30rpx 164rpx;
	.operation {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		padding: 20rpx 0;
		.item {
			margin-left: 30rpx;
			.ico {
				font-size: 44rpx;
				color: #333;
			}
		}
	}
	.user {
		display: flex;
		justify-content: space-between;
		align-items: center;
		.userInfo {
			display: flex;
			align-items: center;
			.avatar {
				width: 160rpx;
				height: 160rpx;
				border-radius: 50%;
				margin-right: 30rpx;
			}
			.userInfo_region {
				.name {
					display: flex;
					align-items: center;
					font-size: 40rpx;
					font-weight: bold;
					.sex_icon {
						width: 60rpx;
						height: 60rpx;
					}
				}
				.userId {
					display: flex;
					align-items: center;
					margin-top: 30rpx;
					font-size: 24rpx;
					.ico {
						font-size: 24rpx;
					}
				}
			}
		}
		.qdBtn {
			background-image: -webkit-linear-gradient(left, rgba(255, 88, 155, 0.5), rgba(255, 88, 155, 0.8));
			width: 150rpx;
			height: 62rpx;
			color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 28rpx;
			border-radius: 40rpx;
			.ico {
				font-size: 28rpx;
				margin-right: 10rpx;
			}
		}
	}
	.userData {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 30rpx;
		.item {
			width: 25%;
			display: flex;
			flex-flow: column;
			align-items: center;
			justify-content: center;
			color: #333;
			.data {
				font-size: 38rpx;
				font-family: Arial;
				font-weight: bold;
			}
			.text {
				font-size: 28rpx;
				margin-top: 10rpx;
			}
		}
	}
	.nav {
		display: flex;
		justify-content: space-between;
		margin-top: 40rpx;
		.item {
			width: 48%;
			height: 230rpx;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 44rpx 30rpx;
			box-sizing: border-box;
			-webkit-box-sizing: border-box;
			-moz-box-sizing: border-box;
			position: relative;
			overflow: hidden;
			.title {
				display: flex;
				justify-content: space-between;
				align-items: center;
				.title_text {
					font-size: 32rpx;
					font-weight: bold;
				}
				.right {
					.ico {
						font-size: 24rpx;
					}
				}
			}
			.desc {
				font-size: 24rpx;
				color: #999;
				margin-top: 10rpx;
			}
			.btn {
				width: 154rpx;
				height: 56rpx;
				background-image: -webkit-linear-gradient(left, #fd9f23, #ff7e00);
				color: #fff;
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 26rpx;
				border-radius: 28rpx;
				margin-top: 30rpx;
			}
			.sign1 {
				position: absolute;
				right: -36rpx;
				bottom: -14rpx;
				opacity: 0.15;
				.ico {
					font-size: 120rpx;
					background-image: -webkit-linear-gradient(135deg, #fc0, #f60);
					overflow: hidden;
					-webkit-background-clip: text; /* 规定背景的绘制区域为文字区域*/
					-webkit-text-fill-color: transparent; /* 文字填充颜色（这里一定要设置 transparent，不然会覆盖底部的背景色）*/
					font-style: normal;
				}
			}
			.sign2 {
				position: absolute;
				right: -10rpx;
				bottom: -16rpx;
				opacity: 0.15;
				.ico {
					font-size: 118rpx;
					background-image: -webkit-linear-gradient(left, rgba(255, 88, 155, 0.4), rgba(255, 88, 155, 1));
					overflow: hidden;
					-webkit-background-clip: text; /* 规定背景的绘制区域为文字区域*/
					-webkit-text-fill-color: transparent; /* 文字填充颜色（这里一定要设置 transparent，不然会覆盖底部的背景色）*/
					font-style: normal;
				}
			}
			.bfbbox {
				margin-top: 10rpx;
				width: 72%;
				height: 60rpx;
				border-radius: 60rpx;
				overflow: hidden;
				background-color: #fff;
				border: #eee 2rpx solid;
				position: relative;
				.bfb {
					background-image: -webkit-linear-gradient(left, rgba(255, 88, 155, 0.5), rgba(255, 88, 155, 0.8));
					height: 60rpx;
					border: #fff 4rpx solid;
					border-radius: 40rpx;
					box-sizing: border-box;
					-webkit-box-sizing: border-box;
					-moz-box-sizing: border-box;
					text-align: center;
					line-height: 52rpx;
					font-size: 26rpx;
					color: #fff;
				}
			}
		}
	}
	.meet_me {
		padding: 42rpx 30rpx 10rpx;
		margin-top: 30rpx;
		background-color: #fff;
		border-radius: 20rpx;
		.title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			.left {
				font-size: 32rpx;
				font-weight: bold;
			}
			.right {
				font-size: 26rpx;
				display: flex;
				align-items: center;
				.ico {
					font-size: 26rpx;
				}
			}
		}
		.nothing {
			display: flex;
			justify-content: center;
			padding: 80rpx 0;
			font-size: 26rpx;
			color: #999;
			.btn {
				display: inline-block;
				line-height: 40rpx;
				border-radius: 20rpx;
				border: #eee 2rpx solid;
				font-size: 30rpx;
				padding: 0 20rpx;
				color: #333;
				margin-left: 10rpx;
			}
		}
	}
	.auth {
		padding: 42rpx 30rpx 10rpx;
		margin-top: 30rpx;
		background-color: #fff;
		border-radius: 20rpx;
		.title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			.left {
				font-size: 32rpx;
				font-weight: bold;
			}
			.right {
				font-size: 26rpx;
				display: flex;
				align-items: center;
				.ico {
					font-size: 26rpx;
				}
			}
		}
		.list {
			display: flex;
			margin-top: 30rpx;
			flex-flow: wrap;
			.item {
				width: 25%;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-bottom: 20rpx;
				flex-flow: column;
				.ico {
					width: 80rpx;
					height: 80rpx;
					background-color: #eee;
					border-radius: 50%;
					display: flex;
					justify-content: center;
					align-items: center;
					color: #fff;
				}
				.text {
					margin-top: 10rpx;
					font-size: 26rpx;
					color: #bbb;
				}
			}
		}
		.arrow_region {
			display: flex;
			justify-content: center;

			.ico {
				width: 82rpx;
				height: 42rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				background-color: #f5f5f5;
				border-radius: 60rpx;
				color: #666;
				font-size: 26rpx;
			}
		}
	}
	.myOperation {
		padding: 42rpx 30rpx 10rpx;
		margin-top: 30rpx;
		background-color: #fff;
		border-radius: 20rpx;
		.title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			.left {
				font-size: 32rpx;
				font-weight: bold;
			}
			.right {
				font-size: 26rpx;
				display: flex;
				align-items: center;
				.ico {
					font-size: 26rpx;
				}
			}
		}
		.list {
			display: flex;
			margin-top: 30rpx;
			flex-flow: wrap;
			.item {
				width: 25%;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-bottom: 20rpx;
				flex-flow: column;
				.ico {
					width: 80rpx;
					height: 80rpx;
					border-radius: 50%;
					display: flex;
					justify-content: center;
					align-items: center;
					background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0), rgba(238, 238, 238, 1));
					position: relative;
					color: #ff589b;
					font-size: 44rpx;
					.sign {
						font-weight: normal;
						display: inline-block;
						min-width: 24rpx;
						padding: 0 10rpx;
						height: 36rpx;
						line-height: 36rpx;
						font-size: 24rpx;
						border-radius: 24rpx;
						background-color: #f60;
						color: #fff;
						position: absolute;
						top: 0rpx;
						right: -30rpx;
						transform: scale(0.8);
					}
				}
				.text {
					margin-top: 10rpx;
					font-size: 26rpx;
					color: #bbb;
				}
			}
		}
	}
}
</style>
